#ifndef RichEditOLEH
#define RichEditOLEH

#include "CRichEdit.h"
#include <vcl\comctrls.hpp>
#include <vcl\comobj.hpp>
#include <vcl\ole2.hpp>
#include <vcl\oledlg.hpp>
#include <richole.h>
#include "richeditolecallback.h"
//---------------------------------------------------------------------------
class TIRichEditOle
{
protected:
   CRichEdit* FRichEdit;
   IRichEditOle* FIRichEditOle;
   TIRichEditOleCallback* FIRichEditCallback;

/*   LONG GetObjectCount(void);
   LONG GetLinkCount(void);*/

   UINT CFObjectDescriptor;
   UINT CFEmbeddedObject;
   UINT CFLinkSource;
   UINT CFRtf;
   UINT CFRtfNoObjs;
   UINT CFReTextObjs;

public:
   TIRichEditOle(CRichEdit* richedit);
   ~TIRichEditOle(void);
/* void SetHostNames(AnsiString hostApp, AnsiString hostDoc);
   bool InsertObject(void);/**/
/*   bool PasteSpecial(void);/**/
   bool CloseActiveObjects(bool savePrompt);
/*  bool InsertOleObjectFromFile(char *szFileName);

   LPOLECLIENTSITE GetClientSite(void);

   __property LONG ObjectCount = { read = GetObjectCount };
   __property LONG LinkCount = { read = GetLinkCount };*/
};
#endif

